
#include "Ball.h"
#include "EasyLogger.inl"

CBall::CBall():iPos(0,0)
	{
	}

CBall::~CBall()
	{
	}

TInt CBall::GetRad()
	{
	return iRad;
	}

void CBall::SetRad( TInt aRad )
	{
	iRad = aRad;
	}

TRealPoint CBall::GetPos()
	{
	return iPos;
	}

void CBall::SetPos( TRealPoint aPos )
	{
	iPos = aPos;
	}

TRealVector CBall::GetAcc()
	{
	return iAcc;
	}

void CBall::SetAcc( TRealVector aAcc )
	{
	iAcc = aAcc;
	}

TRealVector CBall::GetVel()
	{
	return iVel;
	}

void CBall::SetVel( TRealVector aVel )
	{
	iVel = aVel;
	}

void CBall::Move()
	{
	iPos.iX += iVel.iX;
	iPos.iY += iVel.iY;
	
	iVel.iX += iAcc.iX;
	iVel.iY += iAcc.iY;
	
	}

TBool CBall::Hit( CLine* /*aLine*/ )
	{
	return EFalse;
	}
